package com.bestdreamer.map;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class HashMapTest2 {

    public static void main(String[] args) {
        Map<String,Object> map = new HashMap<>();
        List<String> list = new ArrayList<>();
        list.add("zhangsan");
        list.add("lisi");
        map.put("list",list);
        System.out.println(map);
        list.clear();
        list.add("hkrong");
        System.out.println(map);
    }
}
